<template>
  <div class="container">
    <div class="danmu-box">
      <div class="chart-item" v-for="(item, index) in list" :key="index">
        你好哇
      </div>
      <div class="chart-item" v-for="(item, index) in list" :key="index">
        你好哇
      </div>
      <div class="chart-item" v-for="(item, index) in list" :key="index">
        你好哇
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { id: 1, title: '你好哇！' },
        { id: 1, title: '你好哇！' },
        { id: 1, title: '你好哇！' },
        { id: 1, title: '你好哇！' },
      ],
    }
  },
  mounted() {},
  methods: {},
}
</script>

<style lang="less" scoped>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background-image: linear-gradient(180deg, #7ccff1 5%, #0a8233 100%);
  .danmu-box {
    width: 100vw;
    height: 500px;
    background-color: #ccc;
    .chart-item {
      display: inline-block;
      font-size: 0.15rem;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 5px 10px;
      border-radius: 10px;
      color: #fcfcfc;
    }
  }
}
</style>
